package com.usian.controller;


import com.github.pagehelper.PageInfo;
import com.usian.service.ILogService;
import com.usian.shop.entity.Log;
import org.springframework.stereotype.Controller;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2024-01-10
 */
@Slf4j
@RestController
@RequestMapping("/log")
public class LogController {

    @Autowired
    private ILogService logService;
    @RequestMapping("/findAll")
    public PageInfo findAll(@RequestParam("pageNum")Integer pageNum, @RequestParam("pageSize")Integer pageSize, @RequestBody Log log){
return logService.findAll(pageNum,pageSize,log);
    }
}
